package com.mmall.couplet.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mmall.couplet.mapper.CarServiceMapper;
import com.mmall.couplet.model.CarServiceModel;
import com.mmall.couplet.service.CarService;

@Service
public class CarServiceImpl implements CarService {

	@Resource
	private CarServiceMapper carServiceMapper;

	@Override
	public List<CarServiceModel> queryAllCarServiceModel() {
		// TODO Auto-generated method stub
		return carServiceMapper.queryAllCarService();
	}

	@Override
	public CarServiceModel updateCarServiceModel(Integer id) {
		// TODO Auto-generated method stub
		return carServiceMapper.updateCarServiceModel(id);
	}


	@Override
	public Boolean insert(CarServiceModel cModel) {
		// TODO Auto-generated method stub
		return carServiceMapper.insert(cModel);
	}

	@Override
	public Boolean deleteCarServiceModel(Integer id) {
		// TODO Auto-generated method stub
		Boolean carbool = carServiceMapper.deleteCarServiceModel(id);
		return carbool;
	}

	@Override
	public Boolean saveMemberCarServiceModel(CarServiceModel attr) {
		// TODO Auto-generated method stub
		Boolean sabool = carServiceMapper.saveMemberCarServiceModel(attr);
		return sabool;
	}


}
